package com.pll.service;

import com.pll.controller.admin.commodity.vo.CommodityPaginationVO;
import com.pll.controller.admin.commodity.vo.ProductInformationVO;
import com.pll.dto.ResponseDto;
import com.pll.pojo.Goods;
import com.pll.pojo.GoodsType;

import java.util.List;

/**
 * @className: CommodityServiceImpl
 * @author: XR_Z
 * @date: 2025/6/7 20:59
 * @Version: 1.0
 * @description: 商品Service
 */
public interface CommodityService {

    /**
     * 查询所有商品
     * @return 商品list
     */
    ResponseDto getItAll();

    void saveGoods(Goods goods);

    void saveGoodsType(GoodsType goodsType);

    ResponseDto queryGoods(CommodityPaginationVO vo);

    //删除商品
    ResponseDto deleteTheItem(int id);

    //批量删除
    ResponseDto deleteInBulk(List<Integer> ids);

    //修改
    ResponseDto modifyTheProduct(ProductInformationVO productVO);
}